

<include file="Public/head"/><body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <div class="space-4"></div>
                        <form id="form" method="post" action="{:U('del')}">
                            <table class="table table-striped table-bordered">
                                <thead>
                                <tr>
                                    <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                    <th>平台名</th>
                                    <th>绑定域名</th>
                                    <th>落地域名个数</th>
                                    <th>编辑</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="list" id="val">
                                    <tr>
                                        <td class="center"><input class="aids" type="checkbox" name="user_id[]" value="{$val['user_id']}"></td>
                                        <td>{$val['platform_name']}</td>
                                        <td>{$val['domain']}</td>
                                        <td>{$val['count']}</td>
                                        <td><a href="{:U('menuedit',array('id'=>$val['platform_id']))}">生成菜单</a> | <a href="{:U('menuadd',array('id'=>$val['platform_id']))}">新增落地</a></td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </form>
                        {$page}
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $(".check-all").click(function () {
            $(".aids").prop("checked", this.checked);
            getuserids();
        });

        $(".aids").click(function () {
            getuserids();
        });

        function getuserids(){
            var option = $(".ids");
            var user_ids = "";
            $(".aids").each(function(){
                if(this.checked){
                    user_ids += this.value+",";
                }
            });
            if(user_ids.length > 0)
                user_ids = user_ids.substring(0, user_ids.length - 1);
            $("#user_ids").val(user_ids);
            $("#user_ids1").val(user_ids);
            $("#user_ids2").val(user_ids);
        }
        move = '';
        $(".move").blur(function () {
            move = parseInt($(this).val());
        });
        if(move == ''){
            move = 4000;
        }
    })
    /*$('.muban').submit(function(){
        var arr = $(this).serialize();
        var num = 0;
        $(".aids").each(function (obj) {
            if($(this).get(0).checked == true){
                num++;
            }
        })
        if (num == 0){
            var nums=document.getElementById('inputtext').value;
        }else{
            nums = num;
        }
        var urls="http://onroof.cn/Qwadmin/User/send_info2.html";
        var sums=nums/move;
        var contentnum=0;
        var first = 0;
        for(var i=0;i<sums;i++){
            if(parseInt(contentnum)+move<nums){
                contentnum=contentnum+move;
                window.open(urls+"?first="+first+"&move="+move+"&"+arr);
                first=eval(contentnum+1);
            }else{
                window.open(urls+"?first="+first+"&move="+move+"&"+arr);
            }
        }
    })*/

</script>
</body>
</html>
